import { defineStore } from 'pinia'
import { ref } from 'vue';

export const useSettingStore = defineStore('setting', () => {
    const pureColor = ref("#0850B3");
    const menuTheme=ref("light");
    const backgrountImg=ref("")
    const changeColor = (color) => {
        pureColor.value=color;
    }
    const changeMenuTheme=(value)=>{
        menuTheme.value=value
    }
    return {
        pureColor,
        menuTheme,
        changeColor,
        changeMenuTheme
    }
},{
    persist:true,
})